<template>
  <div class="page-view">
    
  </div>
</template>

<script>
//可以使用生成的代码替换全部script部分
import request from "Utils/request";
import { apis } from "Utils/apis";
import { cmx, library } from "Utils/cosmix";
import store from "Utils/store";

import moment from "moment";
export default {
  name: "OnePage",
  data() {
    return {
      accesstoken: "",
      openid: "",
      cmx,
      library,
      BUS,
      windowLoading: true
    };
  },
  mounted() {
    this.windowLoading = false;
  },
  methods: {},
  created() {
    this.BUS.nowThis = this;
    cmx.init(
      {
        appkey: store.appkey,
        redirecturi: location.href,
        locationLoginUrl: store.locationLoginUrl
      },
      {
        callError(msg) {
          $message.error(msg);
        }
      }
    );
    this.accesstoken = cmx.getAccesstoken();
    this.openid = cmx.getOpenid();
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
